<?php
/**
 * ===============================================
 * 版权所有 2019-2050 青岛铁锤科技有限公司，并保留所有权利。
 * 网站地址: http://www.huaxianling.com
 * ===============================================
 * Author: Rag Hu
 * Created Time: 2019/7/1 10:56
 * Modified Time: 2019/7/1 10:56
 * Version: 2.0
 */

namespace App\Models;


use Illuminate\Database\Eloquent\Model;

class CardTypeService extends Model
{
    protected $table = "card_type_service";

    protected $fillable = [
        'type_id',
        'service_id',
        'discount',
    ];

    //关联服务
    public function service()
    {
        return $this->hasOne(StoreService::class,'id','service_id');
    }
}